package ym.ecrm.core.domain.salesManagement;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;

/**
 * 产品类
 * 
 * @author Princess
 * @version 1.0
 */
@Entity
@Table(name="t_production")
public class Production extends BaseEntity{
	/**
	 * 产品编号
	 */
	private String productionCode;
	/**
	 * 产品名称
	 */
	private String productionName;	
	/**
	 * 产品型号
	 */
	private String productionType;
	/**
	 * 产品分类
	 */
	@ManyToOne(targetEntity=ProductionCategory.class)
	@JoinColumn(name="category_id")
	private ProductionCategory procdcutionCategory;
	/**
	 * 状态
	 */
	private String status;
	/**
	 * 价格
	 */
	private float price;
	/**
	 * 优惠价格
	 */
	private float preferentialPrice;
	
	public String getProductionCode() {
		return productionCode;
	}
	public void setProductionCode(String productionCode) {
		this.productionCode = productionCode;
	}
	public String getProductionName() {
		return productionName;
	}
	public void setProductionName(String productionName) {
		this.productionName = productionName;
	}
	public String getProductionType() {
		return productionType;
	}
	public void setProductionType(String productionType) {
		this.productionType = productionType;
	}
	public ProductionCategory getProcdcutionCategory() {
		return procdcutionCategory;
	}
	public void setProcdcutionCategory(ProductionCategory procdcutionCategory) {
		this.procdcutionCategory = procdcutionCategory;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public float getPreferentialPrice() {
		return preferentialPrice;
	}
	public void setPreferentialPrice(float preferentialPrice) {
		this.preferentialPrice = preferentialPrice;
	}
	
}
